class CreateCouponHistories < ActiveRecord::Migration
  def change
    create_table :coupon_histories do |t|
      t.references :shop
      t.references :customer
      t.integer :count

      t.timestamps
    end
    add_index :coupon_histories, :shop_id
    add_index :coupon_histories, :customer_id
  end
end
